package Factory;


import Factory.impl.Car1FactoryServiceImpl;
import Factory.impl.Car2FactoryServiceImpl;

/**
 * Psvm.
 *
 * @author ：gxy.
 * @ClassName : Psvm
 * @modifier ：
 * @date ：2021/9/8 8:53
 * @Version : 1.0.0
 */
public class Psvm {

  public static void main(String[] args) {
    IcarFactory car1Factory = new Car1FactoryServiceImpl();
    System.out.println(car1Factory.createFactory().getCar());
    IcarFactory car2Factory = new Car2FactoryServiceImpl();
    System.out.println(car2Factory.createFactory().getCar());
  }


}
